package dao

import "good-server/basic/global"

func Create[T any](data *T) bool {

	err := global.DB.Create(&data).Error

	if err != nil {
		return false
	}
	return true
}
